﻿<Window x:Class="RL.wRouteRegistryDialog"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Маршрут" Height="180" Width="500" Loaded="Window_Loaded">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        <Label Content="Номер" Height="28" HorizontalAlignment="Left" Margin="0" Name="label1" VerticalAlignment="Top" Grid.Row="0"/>
        <Label Content="Наименование" Height="28" HorizontalAlignment="Left" Margin="0" Name="label2" VerticalAlignment="Top" Grid.Row="1"/>
        <Label Content="Тип" Height="28" HorizontalAlignment="Left" Margin="0" Name="label3" VerticalAlignment="Top" Grid.Row="2"/>
        <Label Content="Цена" Height="28" HorizontalAlignment="Left" Margin="0" Name="label4" VerticalAlignment="Top" Grid.Row="3"/>
        <Button Content="OK" Grid.Row="4" Height="23" HorizontalAlignment="Left" Name="buttonOK" VerticalAlignment="Top" Width="75" IsDefault="True" Click="buttonOK_Click" />
        <Button Content="Отмена" Grid.Column="1" Grid.Row="4" Height="23" HorizontalAlignment="Left" Name="buttonCancel" VerticalAlignment="Top" Width="75" IsCancel="True" Click="buttonCancel_Click" />
        <TextBox Grid.Column="1" Name="textBoxNumber" Text="{Binding Path=number}"/>
        <TextBox Grid.Column="1" Grid.Row="1" Name="textBoxName" Text="{Binding Path=name}"/>
        <TextBox Grid.Column="1" Grid.Row="3" Name="textBoxPrice" Text="{Binding Path=price}"/>
        <ComboBox Grid.Column="1" Grid.Row="2" Name="comboBox1" DisplayMemberPath="name" SelectedValuePath="RouteType"/>
    </Grid>
</Window>
